package cn.byapps.master.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.byapps.master.dao.TaskInfoMapper;
import cn.byapps.master.entity.TaskInfo;
import cn.byapps.master.service.TaskInfoService;

@Service
@Transactional
public class TaskInfoServiceImpl implements TaskInfoService {

	@Autowired
	private TaskInfoMapper taskInfoMapper;

	@Override
	public void save(TaskInfo item) {
		taskInfoMapper.insert(item);
	}

	@Override
	public List<TaskInfo> list() {
		return taskInfoMapper.selectList(null);
	}

	@Override
	public void deleteById(String id) {
		taskInfoMapper.deleteById(id);

	}

}
